/*
 * Creation : 15/01/2015
 */
package com.example.springandtiles.model;

import java.io.Serializable;

public class Player implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private int id;
    private int rank;
    private String name;
    private int points;
    private int weekChange;
    private int tournPlayed;

    /**
     * Getter id
     * 
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * Setter id
     * 
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    public Player(int rank, String name, int points, int weekChange, int tournPlayed) {
        super();
        this.rank = rank;
        this.name = name;
        this.points = points;
        this.weekChange = weekChange;
        this.tournPlayed = tournPlayed;
    }

    /**
     * Getter rank
     * 
     * @return the rank
     */
    public int getRank() {
        return rank;
    }

    /**
     * Setter rank
     * 
     * @param rank the rank to set
     */
    public void setRank(int rank) {
        this.rank = rank;
    }

    /**
     * Getter name
     * 
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Setter name
     * 
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Getter points
     * 
     * @return the points
     */
    public int getPoints() {
        return points;
    }

    /**
     * Setter points
     * 
     * @param points the points to set
     */
    public void setPoints(int points) {
        this.points = points;
    }

    /**
     * Getter weekChange
     * 
     * @return the weekChange
     */
    public int getWeekChange() {
        return weekChange;
    }

    /**
     * Setter weekChange
     * 
     * @param weekChange the weekChange to set
     */
    public void setWeekChange(int weekChange) {
        this.weekChange = weekChange;
    }

    /**
     * Getter tournPlayed
     * 
     * @return the tournPlayed
     */
    public int getTournPlayed() {
        return tournPlayed;
    }

    /**
     * Setter tournPlayed
     * 
     * @param tournPlayed the tournPlayed to set
     */
    public void setTournPlayed(int tournPlayed) {
        this.tournPlayed = tournPlayed;
    }

}
